# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=py3-cli_helpers
_pkgname=cli_helpers
pkgver=2.3.0
pkgrel=3
pkgdesc="A helper library for command-line interfaces"
url="https://pypi.org/project/cli-helpers"
arch="noarch"
license="BSD-3-Clause"
depends="py3-tabulate py3-configobj"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-wcwidth"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-cli_helpers" # Backwards compatibility
provides="py-cli_helpers=$pkgver-r$pkgrel" # Backwards compatiblity

check() {
	py.test-3
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
1ed4c7b9b246ad2a3c6069767efb998d107ac6314ac1695bf36d0d4df72bf5d6551169b7df34f4b1e9ae9ac9691f0736813b21017c3cdb0f82a7d045b2f67de1  py3-cli_helpers-2.3.0.tar.gz
"
